package cn.source.event.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.event.mapper.DbYxsjMapper;
import cn.source.event.domain.DbYxsj;
import cn.source.event.service.IDbYxsjService;

/**
 * eventService业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2025-06-20
 */
@Service
public class DbYxsjServiceImpl implements IDbYxsjService 
{
    @Autowired
    private DbYxsjMapper dbYxsjMapper;

    /**
     * 查询event
     * 
     * @param xh event主键
     * @return event
     */
    @Override
    public DbYxsj selectDbYxsjByXh(Long xh)
    {
        return dbYxsjMapper.selectDbYxsjByXh(xh);
    }

    /**
     * 查询event列表
     * 
     * @param dbYxsj event
     * @return event
     */
    @Override
    public List<DbYxsj> selectDbYxsjList(DbYxsj dbYxsj)
    {
        return dbYxsjMapper.selectDbYxsjList(dbYxsj);
    }

    /**
     * 新增event
     * 
     * @param dbYxsj event
     * @return 结果
     */
    @Override
    public int insertDbYxsj(DbYxsj dbYxsj)
    {
        return dbYxsjMapper.insertDbYxsj(dbYxsj);
    }

    /**
     * 修改event
     * 
     * @param dbYxsj event
     * @return 结果
     */
    @Override
    public int updateDbYxsj(DbYxsj dbYxsj)
    {
        return dbYxsjMapper.updateDbYxsj(dbYxsj);
    }

    /**
     * 批量删除event
     * 
     * @param xhs 需要删除的event主键
     * @return 结果
     */
    @Override
    public int deleteDbYxsjByXhs(Long[] xhs)
    {
        return dbYxsjMapper.deleteDbYxsjByXhs(xhs);
    }

    /**
     * 删除event信息
     * 
     * @param xh event主键
     * @return 结果
     */
    @Override
    public int deleteDbYxsjByXh(Long xh)
    {
        return dbYxsjMapper.deleteDbYxsjByXh(xh);
    }
}
